//
//  ChildComtFrame.m
//  JiaoX
//
//  Created by yinqy on 15/3/9.
//  Copyright (c) 2015年 北京娇羞科技有限公司. All rights reserved.
//

#import "ChildComtFrame.h"
#import "ReComtItemView.h"

@implementation ChildComtFrame

- (instancetype)initWithWidth:(CGFloat)width
{
    self = [super init];
    if (self) {
        self.width = width;
    }
    return self;
}

-(void)setChildComtInfo:(CommentInfo *)childComtInfo{
    _childComtInfo = childComtInfo;
    self.frame = CGRectMake(0, 0, self.width, [ReComtItemView getHeightWithComt:childComtInfo width:self.width]);
}
@end
